<h1>Order List</h1>
<?php  $this->widget('zii.widgets.grid.CGridView', array(
    'dataProvider'=>$dataProvider,
    'columns'=>array(
      array(
        'header'=>'No.',
        'value'=>'$this->grid->dataProvider->pagination->currentPage * $this->grid->dataProvider->pagination->pageSize + ($row+1)',
      ),
      'name',
      'email',
      'tel',
      'message',
      'statusName',
      array(
        'header'=>'View',
        'class'=>'CButtonColumn',
        'template'=>'{view}',
        'buttons'=>array(
          'view' => array(
            'imageUrl'=>Yii::app()->request->baseUrl.'/images/icons/icon_view.jpg',
          )
        ),
      ),      
      array(
        'header'=>'Edit',
        'class'=>'CButtonColumn',
        'template'=>'{update}',
        'buttons'=>array(
          'update' => array(
            'imageUrl'=>Yii::app()->request->baseUrl.'/images/icons/icon_edit.jpg',
          )
        ),
      ),
      array(
        'header'=>'Delete',
        'class'=>'CButtonColumn',
        'template'=>'{delete}',
        'buttons'=>array(
          'delete' => array(
            'imageUrl'=>Yii::app()->request->baseUrl.'/images/icons/icon_bin.jpg',
          )
        ),
      ),
    ),
  )); ?>
